<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的咨询</title>
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <%- include('../../../_global/baseLibs') %>
  
</head>
<body>

<section class="page-wrap page-user">

    <!-- header start -->
    <header class="header-box grey fixed">
        <div class="header-content">
            <div class="left-tool">
                <a class="back" href="#"><i class="iconfont icon-back"></i></a>
            </div>
            <div class="title">我的收藏</div>
        </div>
    </header>
    <!-- header end -->

    <!--tab nav-->
    <nav class="tab-nav">
        <a href="我的收藏1.html">医生</a>
        <a href="我的收藏2.html">医院</a>
        <a class="active" href="wdsc-jkzx.html">咨询</a>
    </nav>
    <!--tab end-->

    <!--内容-->
    <div class="plane-box f">
        <ul class="default-list">

        </ul>
    </div>
    <!--内容END-->
</section>

<script type="text/javascript">

  

    var page_wdscJkzx = (function($, page_wdscJkzx) {


        var cfg_def = {
            queryDataHandler: queryDataHandler,
            setli: setli,
        }

        page_wdscJkzx.init = function(cfg){
            $.extend(page_wdscJkzx, cfg_def, cfg);
            $.QuickRemote.AjaxJson("/api/jkcsHt/jkzx/getCollectNewsList",page_wdscJkzx.queryDataHandler);

        }

        return page_wdscJkzx;

        function queryDataHandler(result){
            var ul = $(".default-list");
            var json = JSON.parse(result.data);
            for(var i = 0 ; i<json.length; i++){
                var li = page_wdscJkzx.setli(json[i]);
                ul.append(li);
            }
        }

        function setli(json){
            var li = $("<li>");
            var a = $("<a>").attr({href:"javascript:void(0)"});
            var divfj = $("<div>").addClass("item-inner big-box");
            var divtext = $("<div>").addClass("question-box item-content");
            var div = $("<div>").addClass("item-after");
            var ptitle = $("<p>").addClass("question").html(json.title);
            var pcontent = $("<p>").addClass("answer").html(json.content);
            var i = $("<i>").addClass("iconfont icon-more");
            a.append(ptitle).append(pcontent);
            $(a).on("click",function(){
                StoreCache.setCache("code", json["code"]);
                //location = "/jkcsHt/jkzx/toJkzxCon.html?code="+json["code"];
                $.QuickUrlUtils.redirectJSBridge({url: "/api/jkcsHt/jkzx/toJkzxCon.html?code="+json["code"],title: "资讯内容",app_user_agent:"jkcs",type: "jkzxCollection"});
            });
            divtext.append(a);
            div.append(i);
            divfj.append(divtext).append(div);
            li.append(divfj);
            return li;
        }
    })(jQuery, {});
    


</script>
</body>
</html>